//
//  ZSCircleChartView.h
//  ZSCircleChartView_master
//
//  Created by safiri on 2018/9/18.
//  Copyright © 2018年 safiri. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, LineCapStyle) {
    LineCapButt,
    LineCapRound,
    LineCapSquare,
};


@interface ZSCircleChartView : UIView

///初始化方法
- (instancetype)initWithFrame:(CGRect)frame withMaxValue:(CGFloat)maxValue value:(CGFloat)value lineWidth:(CGFloat)lineWidth;
///线宽度
@property (nonatomic, assign)CGFloat lineWidth;
///线两头样式 butt round square Defaults to `butt'.
@property (nonatomic ,assign)LineCapStyle lineCapStyle;
///值相关
@property (nonatomic, copy) NSString *valueTitle;
@property (nonatomic, weak) UIColor *valueColor;
@property (nonatomic, weak) UIFont *valueFont;
///渐变色数组
@property (nonatomic, strong) NSArray *colorArray;
///渐变色数组所占位置
@property (nonatomic, strong) NSArray *locations;
///底圆颜色
@property (nonatomic, strong) UIColor *insideCircleColor;
///单色
@property (nonatomic, strong) UIColor *singleColor;

@end
